#ifndef __BMP280__
#define	__BMP280__

#define BMP280_ADDRESS                (0x76<<1)

#define BMP280_CHIP_ID 0x58

#define BMX280_RESET_VALUE 0xB6

#define BMP280_DIG_AC1_MSB_REG               0xAA

#define BMP280_DIG_T1_LSB_REG                0x88
#define BMP280_DIG_H1_LSB_REG                0xA1
#define BMP280_DIG_H2_LSB_REG                0xE1

#define BMX280_CHIPID_REG                    0xD0  /*Chip ID Register */
#define BMX280_RESET_REG                     0xE0  /*Softreset Register */
#define BME280_CTRLHUM_REG                   0xF2  /*Ctrl Humidity Register */
#define BMX280_STATUS_REG                    0xF3  /*Status Register */
#define BMX280_CTRLMEAS_REG                  0xF4  /*Ctrl Measure Register */
#define BMX280_CONFIG_REG                    0xF5  /*Configuration Register */
#define BMX280_PRESSURE_MSB_REG              0xF7  /*Pressure MSB Register */
#define BMX280_PRESSURE_LSB_REG              0xF8  /*Pressure LSB Register */
#define BMX280_PRESSURE_XLSB_REG             0xF9  /*Pressure XLSB Register */
#define BMX280_TEMPERATURE_MSB_REG           0xFA  /*Temperature MSB Reg */
#define BMX280_TEMPERATURE_LSB_REG           0xFB  /*Temperature LSB Reg */
#define BMX280_TEMPERATURE_XLSB_REG          0xFC  /*Temperature XLSB Reg */

void BMP280_Init(void);
long BMP280_GetValue(void);

#endif
